package com.qf.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class R<T> implements Serializable {
    private Integer code = Code.SUCCESS;
    private String msg;
    private T data;
    public static interface Code{
        Integer SUCCESS=100;
        Integer ERROR=400;
        Integer MUST_LOGIN = 500;
    }

    public R() {
    }
}
